package top.rushpeak.edu03.admin.pojo;

import java.io.Serializable;

public class TableColum implements Serializable {
	
	/** Comment for <code>serialVersionUID</code> */
	private static final long	serialVersionUID	= -4931787771785246895L;
	
	private String				type;//text,datetime,date,image
	
	private String				name;//字段名
	
	private String				desc;//字段注解
	
	private String				methodName;
	
	
	public TableColum() {
		super();
	}

	
	
	public TableColum(String name, String desc) {
		super();
		this.name = name;
		this.desc = desc;
		this.methodName = "null";
		this.type = "input";
	}



	public TableColum(String type, String name, String desc) {
		super();
		this.type = type;
		this.name = name;
		this.desc = desc;
		this.methodName = "null";
	}

	public TableColum(String type, String name, String desc, String methodName) {
		super();
		this.type = type;
		this.name = name;
		this.desc = desc;
		this.methodName = methodName;
	}

	public String getMethodName() {
		return methodName;
	}
	
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDesc() {
		return desc;
	}
	
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	@Override
	public String toString() {
		return String.format("TableColum [type=%s, name=%s, desc=%s, methodName=%s]", type, name,
			desc, methodName);
	}
	
}
